<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>JSON测试</title>
    <script type="text/javascript" src="/js/jquery-1.11.3.min.js"></script>
    <script type="text/javascript" src="./json.js"></script>
  </head>
  <body>
    <form>
      <textarea name="user" id="user" cols="120" rows="50">
    {
        id: 111,
        shortid: 11,
        longid: 12345678,
        byteid: 1,
        floatid: 12345678.22,
        doubleid: 1234567890.22,
        loginname: 'talent',
        nick: 'tan',
        ip: '127.0.0.1'
    }

</textarea
      >
      <div id="msg">msg</div>

      <input type="button" value="提 交" onclick="submitForm()" />
    </form>
  </body>
</html>
